//
//  ZJLISDetailViewController.m
//  Estate
//
//  Created by Dolion.Hou on 16/7/14.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "ZJLISDetailViewController.h"
#import "GLDBViewController_Detail_B.h"


@interface ZJLISDetailViewController ()

@end

@implementation ZJLISDetailViewController

- (NSArray *)titArr{
    if(_titArr==nil){
        _titArr=[NSMutableArray arrayWithObjects:@"基本资料",@"附件信息",@"流转信息",nil];
    }
    return _titArr;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"跟进单";
    //添加右上方提交按钮
    self.navigationItem.rightBarButtonItem=[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"wancheng"] style:UIBarButtonItemStyleDone target:self action:@selector(clickSave)];
    [self createsliderBtn];
    
}
- (void)clickSave{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)createsliderBtn{
    SegmentViewController *vc = [[SegmentViewController alloc]init];
    
    ZJDBViewController_Detai_A *Detail_A=[[ZJDBViewController_Detai_A alloc]initWithStyle:2];
    GLDBViewController_Detail_B *Detail_B=[[GLDBViewController_Detail_B alloc]init];
    ZJDBViewController_Detai_C *Detail_C=[[ZJDBViewController_Detai_C alloc]init];
    
    //添加跟进
    NSMutableArray *controlArray = [[NSMutableArray alloc]initWithObjects:Detail_A,Detail_B,Detail_C,nil];
    //设置选中字体颜色
    vc.titleSelectedColor = [UIColor colorWithRed:0.15 green:0.58 blue:0.56 alpha:1.00];
    vc.buttonWidth = DEF_SCREEN_WIDTH/3;
    //添加标题
    vc.titleArray = self.titArr;
    //设置子视图
    vc.subViewControllers = controlArray;
    
    //标签栏背景色
    vc.headViewBackgroundColor=[UIColor colorWithRed:0.98 green:0.98 blue:0.98 alpha:1.00];
    //非选中状态下标签字体大小
    vc.fontSize=14.;
    //选中下划线颜色
    vc.bottomLineColor=[UIColor colorWithRed:0.15 green:0.58 blue:0.56 alpha:1.00];  
    vc.buttonHeight = 40.;
    [vc initSegment];
    [vc addParentController:self];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
